NoSQL operator: sorttable

Sorts a table on one or more columns.

Usage: sorttable [options] [sort-options] [column ...]

Options:
    --input (-i) 'file'
      Read input from 'file' instead of STDIN.

    --output (-o) 'file'
      Write output to 'file' instead of STDOUT.

    --help (-h)
      Display this help text.

    --no-header (-N)
      Remove header from output.

    --debug (-x)
      Print sort(1) command-line to STDERR.

Notes:

Sorts a table on one or more columns. Most valid sort(1) options can
be specified on the command line. Column-level sorting options can be
specified by appending them to the associated column-names, separated
by a colon ":". For instance, to sort a table globally in reverse order,
and numerically on column "SomeColumn", use the following syntax:

     sorttable -r SomeColumn:n < table

Multiple column-specific options can be specified after the colon ":".
Please refer to sort(1) man page for more info.

If no sort columns are specified, then the input table is sorted on
entire rows. Multiple sort columns can be specified, in either blank-
or comma-separated form.

This program has only been tested with GNU sort(1).
Back